package com.cws.model;

import java.util.List;

import com.jfinal.plugin.activerecord.Model;

public class Scenic extends Model<Scenic> {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1356892673426129241L;

	public static final Scenic dao = new Scenic();

	public List<Spots> getSpots() {
		return Spots.dao.find("select * from spots where scenicId = ?", get("id"));
	}

	public List<Scenic> getAll() {
		return dao.find("select * from scenic");
	}
	
	

}
